function install(Vue) {
    Vue.directive('test', {
        bind(el, binding, vnode, oldVnode) {
            console.log("bind")
            console.log(el)
            console.log(binding)
            console.log(vnode)
            console.log(oldVnode)
            console.log("------------------------------")
        },
        inserted(el, binding, vnode, oldVnode) {
            console.log("inserted")
            console.log(el)
            console.log(binding)
            console.log(vnode)
            console.log(oldVnode)
            console.log("------------------------------")
        },
        update() {
            console.log("update")
            console.log("------------------------------")
        },
        componentUpdated() {
            console.log("componentUpdated")
            console.log("------------------------------")
        },
        unbind() {
            console.log("unbind")
            console.log("------------------------------")
        }
    })
}

export default { install };